package com.jrx.anytxn.param.service.aviator;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.param.dto.aviator.AviatorRuleSetTypeReq;
import com.jrx.anytxn.param.dto.aviator.AviatorRuleSetTypeRes;

import java.util.List;

/**
 * @author Qingyao Xing
 * @date 2019/7/17 10:01
 */
public interface IAviatorRuleSetTypeService {

    /**
     * 添加规则集信息
     * @param aviatorRuleSetTypeReq
     * @return boolean
     * @author Qingyao Xing
     * @date 2019/7/17 10:06
     */
    boolean saveAviatorRuleSetType(AviatorRuleSetTypeReq aviatorRuleSetTypeReq) throws TxnBizException;


    /**
     * 修改规则集信息
     * @param aviatorRuleSetTypeReq
     * @return boolean
     * @author Qingyao Xing
     * @date 2019/7/17 10:06
     */
    boolean modifyAviatorRuleSetType(AviatorRuleSetTypeReq aviatorRuleSetTypeReq);

    /**
     * 根据规则集所属参数 获取规则集集合
     * @param proFlag
     * @return java.util.List<com.jrx.anytxn.param.account.dto.AviatorRuleSetTypeRes>
     * @author Qingyao Xing
     * @date 2019/7/17 10:18
     * @throws TxnException
     */
    List<AviatorRuleSetTypeRes> getAviatorRuleSetType(String proFlag, String tenantId) throws TxnException;

    /**
     * 根据主键删除规则集
     * @param id
     * @return boolean
     * @author Qingyao Xing
     * @date 2019/7/17 10:19
     */
    boolean removeAviatorRuleSetType(Long id, String tenantId);

}
